a {
    text-decoration: none;
    color: #fff;

    &:hover {
        color: rgb(196, 196, 196);
    }
}

//设置顶部导航条
.top-bar-wrapper{
    background-color: #000;
}
.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    height: 48px;
    background-color: #000;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

//设置左侧菜单
.left-menu {
    //显示隐藏菜单
    &:hover {
        .nav {
            display: block;
        }
    }
    .menu-icon {
        width: 18px;
        height: 48px;
        // background-color: #bfa;
        position: relative;
        //导航图标的线
        li {
            position: absolute;
            width: 18px;
            height: 1px;
            background-color: #fff;
            //修改变形原点
            transform-origin: left center;
            transition: all 0.3s;
        }

        li:nth-child(1) {
            top: 18px;
        }

        li:nth-child(2) {
            top: 24px;
        }

        li:nth-child(3) {
            top: 30px;
        }

        &:hover {
            li:nth-child(1) {
                //向下旋转
                transform: rotateZ(43deg);
            }

            li:nth-child(2) {
                //隐藏
                // visibility: hidden;
                opacity: 0;
            }

            li:nth-child(3) {
                //向上旋转
                transform: rotateZ(-43deg);
            }
        }
    }

    //设置菜单
    .nav {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        bottom: 0;
        right: 0;
        background-color: #000;
        padding-top: 50px;

        li {
            height: 44px;
            line-height: 44px;
            width: 70%;
            margin: 0 auto;
            border-bottom: 1px solid #4e4e4e69;

            a {
                line-height: 44px;
                font-size: 14px;
                display: block;
            }

            &:last-child a {
                display: inline-block;
                margin-right: 6px;
            }

            span {
                color: #fff;
                font-size: 14px;
            }
        }
    }
}
//设置logo
.logo{
    a{
        display: block;
        background-image: url(../resource/meituLogo.png);
        width:122px;
        height: 32px;
        background-size: 122px 32px;
    }
}
//设置媒体查询
@media only screen{
    //断点768px
    @media (min-width:768px) {
        .left-menu{
            
            order:2;
            flex: auto;
            //显示菜单
            .nav{
                display: flex;
                //关定位
                position: static;
                padding: 0;
                justify-content: space-around;
                li{
                    width: auto;
                    border-bottom: none;
                    margin: 0;
                    a{
                        line-height: 48px;
                    }
                    span{
                        display: none;
                    }
                }
            }
            //隐藏菜单图标
            .menu-icon{
                display: none;   
            }
            
        }
        .logo{
            order: 1;
        }
        .user-info{
            order: 3;
        }
    }
}